package me.send.produce.client.controller;

import java.util.Map;

import me.send.business.base.ErrorEntity;
import me.send.business.service.service.PhonenumberService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "phonenumber")
public class PhonenumberController {

	@Autowired
	private PhonenumberService phonenumberService;

	@RequestMapping(value = "save")
	@ResponseBody
	public ErrorEntity save(String devicenumber) {
		return phonenumberService.save(devicenumber);
	}
	
	@RequestMapping(value="system/save")
	@ResponseBody
	public Map<String, Object> system_save() {
		return phonenumberService.system_save();
	}
}
